<?php
namespace jy_nongfee;
defined('BY_JYA') or exit('error');
/*
	任务
*/
class task extends \plugin{
	//12释放-释放值
	public function up_balance($order=array(),$status=0){
		//先获取加权分红
		$this->model('commission')->get_store_per();
		$members=$this->getall('member',array('uniacid'=>$_SESSION['uniacid']),array('mid'));
		foreach($members as $item){
			$this->model('commission')->create_balance($item['mid']);
			$this->model('commission')->up_endtime($item['mid']);
		}
		return true;
	}
}